Repository navigation
Conversation
Generated by graph-ut-writer skill. Issue: V-10059 Log: 新增 16 个测试目标的单元测试(21 用例,覆盖图元/场景/工具/控件/框架类) - cgraphicslineitem.cpp 279-306: Rotation handle branches (5 cases) - cdrawscene.cpp 466-470: getGroupTreeInfo nested group processEvents - cdrawscene.cpp 335: touch double-click accept=false - cgraphicstextitem.cpp 134: currentCharFormat empty editor - cviewmanagement.cpp 111-112,132-133: setCurView/removeView branches - cdrawparamsigleton.cpp 161-172: addSceneItem sub-thread queued - toolbutton.cpp 244: sizeHint menu indicator - cattributemanagerwgt.cpp 290-295: removeComAttributeWgt found - ccutwidget.cpp 603/607: done lambda clearFocus (GTEST_SKIP offscreen) - cmultiptabbarwidget.cpp 107: CompactMode setTabMinimumSize - cmultiptabbarwidget.cpp 152-153: Close tab menu lambda - cmultiptabbarwidget.cpp 206: FileSelectDialog constructor - application.cpp 608: defaultAttriVar fallback - ccentralwidget.cpp 538: Page::name forwarding - ccentralwidget.cpp 435: DrawBoard::defaultAttriVar fallback - ccentralwidget.cpp 344: signalSetScale lambda Influence: 仅新增 tests/ 下测试代码,不影响项目源码
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wyu71 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UT-20261203-画板 单元测试补充
覆盖目标(16个)
图元/场景类:
cgraphicslineitem.cpp279-306: Rotation 手柄分支(5 条不同斜率的线覆盖 4 象限 + 竖直分支)cdrawscene.cpp466-470:getGroupTreeInfo组中组processEvents分支cdrawscene.cpp335: 触控双击accept=false分支(连续两次 TouchBegin)cgraphicstextitem.cpp134:currentCharFormat空编辑器分支工具/单例/线程类:
cviewmanagement.cpp111-112, 132-133:setCurView/removeView恢复分支cdrawparamsigleton.cpp161-172:addSceneItem子线程排队调用控件类:
toolbutton.cpp244:sizeHint菜单指示器分支cattributemanagerwgt.cpp290-295:removeComAttributeWgt找到分支(避开 302 行 UB)ccutwidget.cpp603/607:donelambdaclearFocus分支(offscreen 下 GTEST_SKIP)cmultiptabbarwidget.cpp107: CompactModesetTabMinimumSizecmultiptabbarwidget.cpp152-153: Close tab 菜单 lambdacmultiptabbarwidget.cpp206:FileSelectDialog构造setDirectoryelse 分支主程序/框架类:
application.cpp608:defaultAttriVar回退attributionWidgetccentralwidget.cpp538:Page::name转发ccentralwidget.cpp435:DrawBoard::defaultAttrivar回退ccentralwidget.cpp344:signalSetScalelambda 转发测试结果